﻿using Common.Result;
using Model.Dto.Employee;
using Model.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IService
{
    public interface IEmployeeService
    {
        Task<Employee> LoginAsync(EmployeeLoginReq loginReq);
        Task<PageInfo> GetEmployeePageAsync(int page,int pageSize,string? name);
        Task<bool> SaveEmployeeAsync(EmployeeAdd employeeAdd,long id);
        Task<bool> DeleteEmployeeByIdAsync(long id);
        Task<bool> EditEmployeeAsync(EmployeeEdit employeeEdit, long id); 
        Task<EmployeeRes> GetEmployeeByIdAsync(long id); 
    }
}
